<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p4_元素显示模式</title>
    <style>
        div{
            width:200px;
            height: 100px;
            border:5px solid  lime;
            /* 块级元素 允许设置宽高 竖着排*/
            display: block;
        }
        span{
            background-color: green;
            display: block;
            display: inline;
            /*行内元素 不允许设置宽高 横着排*/
            width: 100px;
            height: 100px;
        }
        input,button{
            width: 100px;
            height: 100px;
            /*行内块 同时具有行内和块的性质 及横着排，又可以设置宽高*/
            display: inline-block;
        }
        .d2{
            /*让元素消失，不占据页面的布局空间*/
            display: none;
        }

    </style>
</head>
<body>
<div class="d1">111</div>
<div class="d2">222</div>
<div class="d3">333</div>
<br>
<span>1233456</span>
<span>8883456</span>
<span>6663456</span>
<br>
<input type="text">
<input type="text">
<input type="text">
<button>按钮</button>
</body>
</html>